package com.hopu.petshop.entity;

import java.io.Serializable;
import java.util.List;

/**
 * 分页实体类
 */
public class PageEntity<T> implements Serializable {

    //每页数量
    public static final int PAGE_SIZE = 10;
    //分页数据
    private List<T> data;
    //当前页数
    private int current;
    //总页数
    private int pageCount;

    public static int getPageSize() {
        return PAGE_SIZE;
    }

    public List<T> getData() {
        return data;
    }

    public void setData(List<T> data) {
        this.data = data;
    }

    public int getCurrent() {
        return current;
    }

    public void setCurrent(int current) {
        this.current = current;
    }

    public int getPageCount() {
        return pageCount;
    }

    public void setPageCount(int pageCount) {
        this.pageCount = pageCount;
    }
}
